package com.advertise.login.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

public class TwoController extends MultiActionController {

	private String testPage;
	
	public ModelAndView list(HttpServletRequest request,
			HttpServletResponse response) {
		return new ModelAndView(testPage,"executed","list");
	}
	
	public ModelAndView add(HttpServletRequest request,
			HttpServletResponse response) {
		
		return new ModelAndView(testPage,"executed","add");
	}
	
	public ModelAndView delete(HttpServletRequest request,
			HttpServletResponse response) {
		return new ModelAndView(testPage,"executed","delete");
	}

	public void setTestPage(String testPage) {
		this.testPage = testPage;
	}
}
